package com.orphan.util.dto;

import lombok.Data;

import java.io.Serializable;

@Data
public class ListInfo implements Comparable<ListInfo>, Serializable {
    //供货单编号
    private String goodsInId;
    //商品名
    private String goodsName;
    //商品类型
    private String goodsType;
    //商品规格
    private String goodsSize;
    //商品价格
    private String goodsPrice;
    //供货时间
    private String goodsInTime;
    //商品数量
    private Integer goodsInNum;
    //供应商
    private String goodsSupplier;
    //供货单状态 1-已发货；2-入库成功；3-入库失败
    private Integer goodsTag;

    @Override
    public int compareTo(ListInfo listInfo) {
        if (this.goodsInId.equals(listInfo.goodsInId)){
            return 0;
        }
        else return 1;
    }
}
